import numpy as np
a = np.array([1,2])
b=np.array([3, 4])
c=np.array([5,6])
print("垂直堆叠:\n", np.vstack((a, b,c)))
print("水平堆叠:\n", np.hstack((a, b,c)))
# Output:
#     垂直堆叠:
#      [[1 2]
#      [3 4]
#      [5 6]]
#     水平堆叠:
#      [1 2 3 4 5 6]